package com.feib.stms.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.feib.stms.dao.CodeTableDao;
import com.feib.stms.model.CodeTable;
import com.feib.stms.service.CodeTableService;


@Service("codeTableService")
public class CodeTableServiceImpl implements CodeTableService {
	
	
@Resource(name="codeTableDao")	
private CodeTableDao codeTableDao;
	
	public List<CodeTable> findByCodeKind(String codeKind) {
		
		return codeTableDao.findByCodeKind(codeKind);
	}

	public CodeTable getCodeTable(String codeKind, String codeValue) {
		
		return codeTableDao.getCodeTable(codeKind, codeValue);
	}

	public int insertCodeTable(CodeTable codeTable) {

		return codeTableDao.insert(codeTable);
	}

	public int updateCodeTable(CodeTable codeTable) {

		return codeTableDao.update(codeTable);
	}
	
	
	
}
